import service from '@/utils/request'
// @Tags LocationInfo
// @Summary 创建位置信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LocationInfo true "创建位置信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /locationInfo/createLocationInfo [post]
export const createLocationInfo = (data) => {
  return service({
    url: '/locationInfo/createLocationInfo',
    method: 'post',
    data,
  })
}

// @Tags LocationInfo
// @Summary 删除位置信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LocationInfo true "删除位置信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /locationInfo/deleteLocationInfo [delete]
export const deleteLocationInfo = (params) => {
  return service({
    url: '/locationInfo/deleteLocationInfo',
    method: 'delete',
    params,
  })
}

// @Tags LocationInfo
// @Summary 批量删除位置信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除位置信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /locationInfo/deleteLocationInfo [delete]
export const deleteLocationInfoByIds = (params) => {
  return service({
    url: '/locationInfo/deleteLocationInfoByIds',
    method: 'delete',
    params,
  })
}

// @Tags LocationInfo
// @Summary 更新位置信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LocationInfo true "更新位置信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /locationInfo/updateLocationInfo [put]
export const updateLocationInfo = (data) => {
  return service({
    url: '/locationInfo/updateLocationInfo',
    method: 'put',
    data,
  })
}

// @Tags LocationInfo
// @Summary 用id查询位置信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.LocationInfo true "用id查询位置信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /locationInfo/findLocationInfo [get]
export const findLocationInfo = (params) => {
  return service({
    url: '/locationInfo/findLocationInfo',
    method: 'get',
    params,
  })
}

// @Tags LocationInfo
// @Summary 分页获取位置信息列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取位置信息列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /locationInfo/getLocationInfoList [get]
export const getLocationInfoList = (params) => {
  return service({
    url: '/locationInfo/getLocationInfoList',
    method: 'get',
    params,
  })
}
// @Tags LocationInfo
// @Summary 不需要鉴权的位置信息接口
// @accept application/json
// @Produce application/json
// @Param data query request.LocationInfoSearch true "分页获取位置信息列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /locationInfo/getLocationInfoPublic [get]
export const getLocationInfoPublic = () => {
  return service({
    url: '/locationInfo/getLocationInfoPublic',
    method: 'get',
  })
}
